<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新窗口</title>
</head>
<body>
    <h1>新窗口</h1>
    <div>从localStorage获取的值：<span id="name"></span></div>
    <button id="btn">发送数据</button>
</body>
<script src="./new.js"></script>
</html>